﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OgilvyOne.UKNow.BLL;
using OgilvyOne.UKNow.Model;
public partial class CnEnMapp : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string langid = Request.Form["lanid"];
            string eventid = Request.Form["eventid"];
            ReturnEventID( langid, eventid);
            
        }
    }

    private void ReturnEventID(string langid, string eventid)
    {

        CnENnMappBLL cmb = new CnENnMappBLL();
        CnEnMappingMod cmm=  cmb.GetCnEnMapMod(Convert.ToInt32( langid),Convert.ToInt32( eventid));
        if (cmm != null)
        {
            Response.Write((langid == "2052" ? cmm.Col_data_id_en : cmm.Col_data_id_cn));
        }
        else
        {
            Response.Write("error"); 
        }

    }
}